package com.jeesite.modules.dataScreen.web;

import com.jeesite.modules.dataScreen.service.IrsService;
import com.jeesite.modules.dataScreen.web.vo.IndexRightTopDataVo;
import com.jeesite.modules.dataScreen.web.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Api(tags = "首页数据接口")
public class IndexDataApi {

    @Resource
    private IrsService irsService;

    @GetMapping("/indexRightTop")
    @ApiOperation("首页右侧顶部数据接口-数据接入")
    public Result<List<IndexRightTopDataVo>> indexRightTop() {
        return Result.OK(irsService.indexRightTop());
    }

}
